/*var scale = 1/window.devicePixelRatio;
          //console.log(scale)
var s = `<meta name="viewport" content="width=device-width,minimum-scale=${scale},maximum-scale=${scale},user-scalable=no">`
document.write(s);

var remVal = window.innerWidth / 10;

document.getElementsByTagName('html')[0].style.fontSize = remVal + 'px';*/



(function (doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
            recalc = function () {
                var clientWidth = docEl.clientWidth;
                if (!clientWidth) return;
                if(clientWidth>=640){
                    docEl.style.fontSize = '100px';
                }else{
                    docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
                }
            };

        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);